﻿    <link href="../Content/Styles/page_styles.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Styles/styles.css" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("/Scripts/jquery-1.6.2.js") type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>

    <script type="text/javascript">
    
        function MM_showHideLayers() { //v9.0
            var i, p, v, obj, args = MM_showHideLayers.arguments;
            for (i = 0; i < (args.length - 2); i += 3)
                with (document) if (getElementById && ((obj = getElementById(args[i])) != null)) {
                    v = args[i + 2];
                    if (obj.style) { obj = obj.style; v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden' : v; }
                    obj.visibility = v;
                }
        }

        function MM_preloadImages() { //v3.0
            var d = document; if (d.images) {
                if (!d.MM_p) d.MM_p = new Array();
                var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
                    if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
            }
        }
        function MM_openBrWindow(theURL, winName, features) { //v2.0
            window.open(theURL, winName, features);
        }


        $(document).ready(function () {

            $('area[id="closearea"]').live("click", function (e) {
                $(".dialog").dialog("close");
            });

            $('input[id="Register"]').live("click", function (e) {
                $("form#formID").submit();
            });

        });
        </script>

@model RipPoll.Web.Mvc.Models.SignInModel
           
    @using (Ajax.BeginForm("popupsignin", "User",new AjaxOptions { InsertionMode=System.Web.Mvc.Ajax.InsertionMode.Replace, HttpMethod = "POST", UpdateTargetId = "emailDialog" }))
    {
        
            <div style="visibility:visible;position: absolute;background: #FFF;	border: 10px solid #999; height: 340px;" id="1234">
                <table width="485">
                    <tr>
                        <td>
                        <div id="registerHeader">
                            <img src="../content/images/login_here.png" width="485" height="50" border="0" usemap="#Map2" />
                            <map name="Map2" id="Map2">
                            <area id="closearea" shape="rect" coords="445,10,478,40" href="#" />
                            </map>
                        </div>
                        <div>
                            @TempData[RipPoll.Common.WebConstants.SignInMessage]
                            @Html.ValidationSummary(true, "Sign in is not successful...")

                        </div>
                        <div id="loginRightCol">
                            <table width="79%" border="0" align="center" cellpadding="5" cellspacing="0">
                            <tr>
                                <td width="63" align="right" class="formTopics">username or email</td>
                                <td width="291" colspan="3" align="center">
                                    @Html.TextBoxFor(m => m.usernameoremail)
                                    @Html.ValidationMessageFor(m => m.usernameoremail)
                                    @*<input name="usernameoremail" type="text" class="formTextArea" id="usernameoremail" size="45" class="password3" />*@
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="formTopics">password</td>

                                <td colspan="3" align="center">
                                    @*<input name="password" type="password" class="formTextArea" id="password" class="password4" size="45" />*@
                                    @Html.PasswordFor(m=>m.password)
                                    @Html.ValidationMessageFor(m => m.password)
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" align="center"><input name="checkbox2" type="checkbox" id="checkbox2" checked="checked" />
                                Remember me</td>
                            </tr>
                            <tr>
                                <td colspan="4" align="center">
                                    <input type="submit" name="Register" id="Register" value="Login" />
                                </td>
                                
                            </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    }

